package asteroids.model.programs.unaryexpression;

import asteroids.model.programs.Expression;
import asteroids.model.programs.Program;
import exception.IllegalOperandException;

public class Not extends UnaryExpression<Boolean> {

	public Not(Expression<?> operand) throws IllegalOperandException {
		super(operand);
	}

	@Override
	public Boolean getValue(Program program) {
		if((Boolean)(getOperand().getValue(program)))
			return false;
		return true;
	}



}